/**
 * @file e1_t2_q2.c
 * @date 2022-03-01
 * 
 * @copyright Copyright (c) 2022 cnzyx MIT Licence
 * 
 */

#include<stdio.h>
#include<stdlib.h>

int fun(long num){
    int result=1;
    while(num){
        result*=num%10;
        num/=10;
    }
    return result;
}
int main(int argc, char const *argv[])
{
    //UTF-8
    system("chcp 65001");

    long in_num;
    int result;
    printf("请输入一个正整数：");
    scanf("%ld",&in_num);
    result=fun(in_num);
    printf("结果：%d\n",result);
    
    //Pause console
    system("pause");
    return 0;
}
